#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2019/2/7 7:57
@desc
"""
# join()

import time
from multiprocessing import Process


def func(arg1, arg2):
    print('*' * arg1)
    time.sleep(5)
    print('*' * arg2)


if __name__ == '__main__':
    p = Process(target=func, args=(10, 20))
    p.start()
    p.join()  # 感知一个子进程的结束，将异步的程序改为同步
    print('------运行完了')
